package com.wish.building.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 社区类型表
 */
public enum CommunityType {
    UNKNOWCOMMUNITY("未知类型", 0),
    LARGECOMMUNITY("大型社区", 1),
    MEDIUMCOMMUNITY("中型社区", 2),
    SMALLCOMMUNITY("小型社区", 3);

    @EnumValue
    private String name;
    @JsonValue
    private int index;

    CommunityType(String name, int index) {
        this.name = name;
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
